Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit fewer flushes when handling RPCs on the server #1110

Merged
merged 1 commit into from
Jan 21, 2021

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Jan 21, 2021

Motivation:

The changes in #1101 included a change in when flushes were emitted.
For unary RPCs this led to an additional flush, which in some
circumstances led to a drop in QPS of approximately 5%.

Modifications:

  • Introduce an option as to whether a flush should be emitted when
    writing initial response metadata
  • Fix a bug where the request to flush or not for messages was ignored

Result:

A 5% increase in QPS for the unary-single benchmark (single connection,
one rpc at a time).

@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Jan 21, 2021
@glbrntt glbrntt requested a review from Lukasa January 21, 2021 14:05
Motivation:

The changes in grpc#1101 included a change in when flushes were emitted.
For unary RPCs this led to an additional flush, which in some
circumstances led to a drop in QPS of approximately 5%.

Modifications:

- Introduce an option as to whether a flush should be emitted when
  writing initial response metadata
- Fix a bug where the request to flush or not for messages was ignored

Result:

A 5% increase in QPS for the unary-single benchmark (single connection,
one rpc at a time).
@Lukasa Lukasa merged commit 6f92056 into grpc:main Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants